import request from '@/utils/request'

// 查询用户积分抽奖记录列表
export function listLotteryRecords(query) {
  return request({
    url: '/core/lotteryRecords/list',
    method: 'get',
    params: query
  })
}

// 查询用户积分抽奖记录详细
export function getLotteryRecords(id) {
  return request({
    url: '/core/lotteryRecords/' + id,
    method: 'get'
  })
}

// 新增用户积分抽奖记录
export function addLotteryRecords(data) {
  return request({
    url: '/core/lotteryRecords',
    method: 'post',
    data: data
  })
}

// 修改用户积分抽奖记录
export function updateLotteryRecords(data) {
  return request({
    url: '/core/lotteryRecords',
    method: 'put',
    data: data
  })
}

// 删除用户积分抽奖记录
export function delLotteryRecords(id) {
  return request({
    url: '/core/lotteryRecords/' + id,
    method: 'delete'
  })
}
